package com.ssps.entity;

import java.util.ArrayList;
import java.util.List;

public class InformationExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public InformationExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIidIsNull() {
            addCriterion("iid is null");
            return (Criteria) this;
        }

        public Criteria andIidIsNotNull() {
            addCriterion("iid is not null");
            return (Criteria) this;
        }

        public Criteria andIidEqualTo(Integer value) {
            addCriterion("iid =", value, "iid");
            return (Criteria) this;
        }

        public Criteria andIidNotEqualTo(Integer value) {
            addCriterion("iid <>", value, "iid");
            return (Criteria) this;
        }

        public Criteria andIidGreaterThan(Integer value) {
            addCriterion("iid >", value, "iid");
            return (Criteria) this;
        }

        public Criteria andIidGreaterThanOrEqualTo(Integer value) {
            addCriterion("iid >=", value, "iid");
            return (Criteria) this;
        }

        public Criteria andIidLessThan(Integer value) {
            addCriterion("iid <", value, "iid");
            return (Criteria) this;
        }

        public Criteria andIidLessThanOrEqualTo(Integer value) {
            addCriterion("iid <=", value, "iid");
            return (Criteria) this;
        }

        public Criteria andIidIn(List<Integer> values) {
            addCriterion("iid in", values, "iid");
            return (Criteria) this;
        }

        public Criteria andIidNotIn(List<Integer> values) {
            addCriterion("iid not in", values, "iid");
            return (Criteria) this;
        }

        public Criteria andIidBetween(Integer value1, Integer value2) {
            addCriterion("iid between", value1, value2, "iid");
            return (Criteria) this;
        }

        public Criteria andIidNotBetween(Integer value1, Integer value2) {
            addCriterion("iid not between", value1, value2, "iid");
            return (Criteria) this;
        }

        public Criteria andUiidIsNull() {
            addCriterion("uiid is null");
            return (Criteria) this;
        }

        public Criteria andUiidIsNotNull() {
            addCriterion("uiid is not null");
            return (Criteria) this;
        }

        public Criteria andUiidEqualTo(Integer value) {
            addCriterion("uiid =", value, "uiid");
            return (Criteria) this;
        }

        public Criteria andUiidNotEqualTo(Integer value) {
            addCriterion("uiid <>", value, "uiid");
            return (Criteria) this;
        }

        public Criteria andUiidGreaterThan(Integer value) {
            addCriterion("uiid >", value, "uiid");
            return (Criteria) this;
        }

        public Criteria andUiidGreaterThanOrEqualTo(Integer value) {
            addCriterion("uiid >=", value, "uiid");
            return (Criteria) this;
        }

        public Criteria andUiidLessThan(Integer value) {
            addCriterion("uiid <", value, "uiid");
            return (Criteria) this;
        }

        public Criteria andUiidLessThanOrEqualTo(Integer value) {
            addCriterion("uiid <=", value, "uiid");
            return (Criteria) this;
        }

        public Criteria andUiidIn(List<Integer> values) {
            addCriterion("uiid in", values, "uiid");
            return (Criteria) this;
        }

        public Criteria andUiidNotIn(List<Integer> values) {
            addCriterion("uiid not in", values, "uiid");
            return (Criteria) this;
        }

        public Criteria andUiidBetween(Integer value1, Integer value2) {
            addCriterion("uiid between", value1, value2, "uiid");
            return (Criteria) this;
        }

        public Criteria andUiidNotBetween(Integer value1, Integer value2) {
            addCriterion("uiid not between", value1, value2, "uiid");
            return (Criteria) this;
        }

        public Criteria andDriverimgIsNull() {
            addCriterion("driverimg is null");
            return (Criteria) this;
        }

        public Criteria andDriverimgIsNotNull() {
            addCriterion("driverimg is not null");
            return (Criteria) this;
        }

        public Criteria andDriverimgEqualTo(String value) {
            addCriterion("driverimg =", value, "driverimg");
            return (Criteria) this;
        }

        public Criteria andDriverimgNotEqualTo(String value) {
            addCriterion("driverimg <>", value, "driverimg");
            return (Criteria) this;
        }

        public Criteria andDriverimgGreaterThan(String value) {
            addCriterion("driverimg >", value, "driverimg");
            return (Criteria) this;
        }

        public Criteria andDriverimgGreaterThanOrEqualTo(String value) {
            addCriterion("driverimg >=", value, "driverimg");
            return (Criteria) this;
        }

        public Criteria andDriverimgLessThan(String value) {
            addCriterion("driverimg <", value, "driverimg");
            return (Criteria) this;
        }

        public Criteria andDriverimgLessThanOrEqualTo(String value) {
            addCriterion("driverimg <=", value, "driverimg");
            return (Criteria) this;
        }

        public Criteria andDriverimgLike(String value) {
            addCriterion("driverimg like", value, "driverimg");
            return (Criteria) this;
        }

        public Criteria andDriverimgNotLike(String value) {
            addCriterion("driverimg not like", value, "driverimg");
            return (Criteria) this;
        }

        public Criteria andDriverimgIn(List<String> values) {
            addCriterion("driverimg in", values, "driverimg");
            return (Criteria) this;
        }

        public Criteria andDriverimgNotIn(List<String> values) {
            addCriterion("driverimg not in", values, "driverimg");
            return (Criteria) this;
        }

        public Criteria andDriverimgBetween(String value1, String value2) {
            addCriterion("driverimg between", value1, value2, "driverimg");
            return (Criteria) this;
        }

        public Criteria andDriverimgNotBetween(String value1, String value2) {
            addCriterion("driverimg not between", value1, value2, "driverimg");
            return (Criteria) this;
        }

        public Criteria andPlateimgIsNull() {
            addCriterion("plateimg is null");
            return (Criteria) this;
        }

        public Criteria andPlateimgIsNotNull() {
            addCriterion("plateimg is not null");
            return (Criteria) this;
        }

        public Criteria andPlateimgEqualTo(String value) {
            addCriterion("plateimg =", value, "plateimg");
            return (Criteria) this;
        }

        public Criteria andPlateimgNotEqualTo(String value) {
            addCriterion("plateimg <>", value, "plateimg");
            return (Criteria) this;
        }

        public Criteria andPlateimgGreaterThan(String value) {
            addCriterion("plateimg >", value, "plateimg");
            return (Criteria) this;
        }

        public Criteria andPlateimgGreaterThanOrEqualTo(String value) {
            addCriterion("plateimg >=", value, "plateimg");
            return (Criteria) this;
        }

        public Criteria andPlateimgLessThan(String value) {
            addCriterion("plateimg <", value, "plateimg");
            return (Criteria) this;
        }

        public Criteria andPlateimgLessThanOrEqualTo(String value) {
            addCriterion("plateimg <=", value, "plateimg");
            return (Criteria) this;
        }

        public Criteria andPlateimgLike(String value) {
            addCriterion("plateimg like", value, "plateimg");
            return (Criteria) this;
        }

        public Criteria andPlateimgNotLike(String value) {
            addCriterion("plateimg not like", value, "plateimg");
            return (Criteria) this;
        }

        public Criteria andPlateimgIn(List<String> values) {
            addCriterion("plateimg in", values, "plateimg");
            return (Criteria) this;
        }

        public Criteria andPlateimgNotIn(List<String> values) {
            addCriterion("plateimg not in", values, "plateimg");
            return (Criteria) this;
        }

        public Criteria andPlateimgBetween(String value1, String value2) {
            addCriterion("plateimg between", value1, value2, "plateimg");
            return (Criteria) this;
        }

        public Criteria andPlateimgNotBetween(String value1, String value2) {
            addCriterion("plateimg not between", value1, value2, "plateimg");
            return (Criteria) this;
        }

        public Criteria andRplateIsNull() {
            addCriterion("rplate is null");
            return (Criteria) this;
        }

        public Criteria andRplateIsNotNull() {
            addCriterion("rplate is not null");
            return (Criteria) this;
        }

        public Criteria andRplateEqualTo(String value) {
            addCriterion("rplate =", value, "rplate");
            return (Criteria) this;
        }

        public Criteria andRplateNotEqualTo(String value) {
            addCriterion("rplate <>", value, "rplate");
            return (Criteria) this;
        }

        public Criteria andRplateGreaterThan(String value) {
            addCriterion("rplate >", value, "rplate");
            return (Criteria) this;
        }

        public Criteria andRplateGreaterThanOrEqualTo(String value) {
            addCriterion("rplate >=", value, "rplate");
            return (Criteria) this;
        }

        public Criteria andRplateLessThan(String value) {
            addCriterion("rplate <", value, "rplate");
            return (Criteria) this;
        }

        public Criteria andRplateLessThanOrEqualTo(String value) {
            addCriterion("rplate <=", value, "rplate");
            return (Criteria) this;
        }

        public Criteria andRplateLike(String value) {
            addCriterion("rplate like", value, "rplate");
            return (Criteria) this;
        }

        public Criteria andRplateNotLike(String value) {
            addCriterion("rplate not like", value, "rplate");
            return (Criteria) this;
        }

        public Criteria andRplateIn(List<String> values) {
            addCriterion("rplate in", values, "rplate");
            return (Criteria) this;
        }

        public Criteria andRplateNotIn(List<String> values) {
            addCriterion("rplate not in", values, "rplate");
            return (Criteria) this;
        }

        public Criteria andRplateBetween(String value1, String value2) {
            addCriterion("rplate between", value1, value2, "rplate");
            return (Criteria) this;
        }

        public Criteria andRplateNotBetween(String value1, String value2) {
            addCriterion("rplate not between", value1, value2, "rplate");
            return (Criteria) this;
        }

        public Criteria andStatusIsNull() {
            addCriterion("status is null");
            return (Criteria) this;
        }

        public Criteria andStatusIsNotNull() {
            addCriterion("status is not null");
            return (Criteria) this;
        }

        public Criteria andStatusEqualTo(String value) {
            addCriterion("status =", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotEqualTo(String value) {
            addCriterion("status <>", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThan(String value) {
            addCriterion("status >", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThanOrEqualTo(String value) {
            addCriterion("status >=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThan(String value) {
            addCriterion("status <", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThanOrEqualTo(String value) {
            addCriterion("status <=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLike(String value) {
            addCriterion("status like", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotLike(String value) {
            addCriterion("status not like", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusIn(List<String> values) {
            addCriterion("status in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotIn(List<String> values) {
            addCriterion("status not in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusBetween(String value1, String value2) {
            addCriterion("status between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotBetween(String value1, String value2) {
            addCriterion("status not between", value1, value2, "status");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}